﻿using System.Data.Entity;
using System.Data.Objects;
using Wamm.Domain.EntityFramework;
using Wamm.Model.Entities;

namespace Wamm.EntityFrameworkImplementation {
    public class WammCatalog : DbContext, IWammCatalog {

        public WammCatalog(string connectionstring)
            : base(connectionstring) { }

        public DbSet<Event> Events { get; set;}

        public DbSet<EventType> EventTypes { get; set;}

        public DbSet<Family> Families { get; set;}

        public DbSet<FamilyPhoto> FamilyPhotos { get; set;}

        public DbSet<Participant> Participants { get; set;}
 
        public DbSet<ParticipantType> ParticipantTypes { get; set;}

        public DbSet<Person> People { get; set;}

        public DbSet<PersonPhoto> PersonPhotos { get; set;}

        public ObjectContext ObjContext
        {
            get { return this.ObjectContext; }
        } 
    }
}
